package com.lhgray.sglhome.data.repository

import com.freightoa.foundation.net.ApiResult
import com.freightoa.foundation.net.bean.SGLResponse
import com.freightoa.foundation.presentation.repository.BaseRepository
import com.lhgray.sglhome.data.network.api.HomeServer
import com.lhgray.sglhome.domain.model.WarehouseBean
import javax.inject.Inject

class WarehouseRepository @Inject constructor() : BaseRepository {
    @Inject
    lateinit var homeServer: HomeServer
    suspend fun getWarehouseJob(fiNo: String): ApiResult<SGLResponse<WarehouseBean>> {
        return homeServer.getWarehouseJob("1", fiNo)
    }

    suspend fun postWarehouseJob(warehouseBean: WarehouseBean): ApiResult<SGLResponse<String>> {
        return homeServer.postWarehouseJob("1", warehouseBean)
    }


}